package com.lixin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lixin.entity.Likes;

import java.util.List;

/**
 * <p>
 * 用于存储动态的点赞记录 服务类
 * </p>
 *
 * @author lixin
 * @since 2023-07-28
 */
public interface ILikesService extends IService<Likes> {

    List<Likes> selectLikesByPostIds(List<Integer> postIds);

    Likes likePost(Integer postId,Integer userId);

    Likes addOrUpdate(Likes likes);

    boolean hasLiked(Integer postId, Integer userId);
}
